package com.boco.modules.fdoc.dao;

import java.util.List;

import com.boco.common.annotation.MyBatisDao;
import com.boco.common.persistence.CrudDao;
import com.boco.modules.fdoc.model.UserRelationsEntity;
/**
 * 用户家庭成员dao
 * @author sufj
 *
 */
@MyBatisDao
public interface UserRelationsDao extends CrudDao<UserRelationsEntity>{
	/**
	 * 查询所有家庭成员
	 * @param uid
	 * @return
	 */
	public List<UserRelationsEntity> getByUid(String uid);
	/**
	 * 查找用户本人
	 * @param uid
	 * @return
	 */
	public UserRelationsEntity getUserSelf(String uid);
	/**
	 * 查询单个家庭成员
	 * @param patientId
	 * @return
	 */
	public UserRelationsEntity getById(int id);
}
